package lgs.hm.aop;

import org.springframework.stereotype.Component;

@Component
public class Girl {
	
	public double pay(double amount,double num) {
		if(1==1)
		throw new RuntimeException("钱不够");  //异常结束
		
		return num-amount;   //return正常结束
	}
	
	public void eat() {
		System.out.println("吃一只红烧猪脚");
	}

}
